
#ifndef __MAIN_H
#define __MAIN_H


#include "gd32f1x0.h"

#define GotoAppGuide 0x08003FF0

//Enumeration of received task instructions
enum CommandEnum
{
		CMDCorrectionTime = 0x0000,
		
    CMDAddTask = 0x0101,CMDDelTask = 0x0102,CMDAddDev = 0x0103,CMDDelDev = 0x0104,
};

typedef struct
{
	bool status;
	bool loaderEnd;
	
	uint8_t bootloaderpackage;
	uint8_t bootloaderpackagecount;
	
	uint32_t bootloaderWaitTime;
	uint32_t bootloaderTime;
	
	uint32_t bootloaderbytecount;
	uint32_t bootloaderbitcount;
	
}Bootloader_struct;




#endif
